package io.jee.medusa.orm.pager;

import java.util.Map;
import java.util.TreeMap;

public class OrderByBuilder {
	
	private Map<String, String> orderBy = new TreeMap<>();
	
	public OrderByBuilder asc(String key){
		orderBy.put(key, "ASC");
		return this;
	}
	
	public OrderByBuilder desc(String key){
		orderBy.put(key, "DESC");
		return this;
	}
	
	public OrderByBuilder on(String field, String Type){
		orderBy.put(field, Type);
		return this;
	}

	public Map<String, String> getOrderBy() {
		return orderBy;
	}

}
